package com.itxiao.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (OrderSku)表实体类
 *
 * @author makejava
 * @since 2025-10-12 17:07:25
 */
@Data
@TableName("order_sku")
@AllArgsConstructor
@NoArgsConstructor
public class OrderSku {
    //订单ID
    @TableId(type = IdType.AUTO)
    private Long id;
    //订单ID
    private Long orderId;
    //订单号
    private String orderNo;
    //店铺id
    private Long shopId;
    //商品id
    private Long spuId;
    //商品规格id
    private Long skuId;
    //商品标题
    private String snapTitle;
    //规格详情快照
    private String snapSku;
    //数量
    private Long quantity;
    //销售价格
    private Long salePrice;
    //最终支付价格
    private Integer payPrice;
    //当前商品状态：1未支付;2已支付;3已发货;4已支付
    private Integer status;
    //快递公司
    private String deliveryCompany;
    //快递单号
    private String deliveryNo;
    //发货时间
    private Date deliveryTime;
    //创建时间
    private Date createTime;
    //最后更新时间
    private Date updateTime;
    //用户id
    private Integer userId;
}

